package com.hds.modules.app.service;

import com.hds.common.utils.PageUtils;
import com.hds.modules.app.entity.UserMessage;

import java.util.Map;

public interface UserMessageService {
	
	/**
	 * 消息
	 */
	public void save(UserMessage message);
	
	/**
	 * 消息
	 */
	public void update(UserMessage message);
	
	/**
	 * 消息
	 */
	public UserMessage get(Integer id);

	public Integer queryMaxBatchByCompanyId(Integer companyId);

//	public PageUtils queryPage(Map<String, Object> params);

	public PageUtils queryPage(Map<String, Object> params);

	
	public UserMessage findMaxOne(Integer userId);
	
	public UserMessage findMaxOneMessageAndMajorNoutNull(Integer userId);
}
